using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WqLunTan.Models.DataBase
{
    /// <summary>
    /// 帖子
    /// </summary>
    [Table("post_content")]
    public class post_content : BaseUpdateEntity
    {

        public Guid tid { get; set; }

        public Guid uid { get; set; }

        public bool is_show { get; set; }

        [MaxLength(20)]
        [Required(AllowEmptyStrings = true)]
        public string uname { get; set; } = string.Empty;

        [MaxLength(3000)]
        [Required(AllowEmptyStrings = true)]
        public string content { get; set; } = string.Empty;
    }
}
